aboutsummaryrefslogtreecommitdiff
path: root/src/main/extractor.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-09-24 22:25:57 +0000
committerChristian Grothoff <christian@grothoff.org>2012-09-24 22:25:57 +0000
commitcb080247ac32a846f72554a371ca69e3dd9080da (patch)
tree22e1c8621f8d1135ade4a3fb501a02089487659f /src/main/extractor.c
parentb7846948995576e768ce89d2cd0dd04d1e64de13 (diff)
downloadlibextractor-cb080247ac32a846f72554a371ca69e3dd9080da.tar.gz
libextractor-cb080247ac32a846f72554a371ca69e3dd9080da.zip
-check if SHM creation failed, reduce SHM name length as OSX limits to 31 characters
Diffstat (limited to 'src/main/extractor.c')
-rw-r--r--src/main/extractor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/extractor.c b/src/main/extractor.c
index b5db010..90db784 100644
--- a/src/main/extractor.c
+++ b/src/main/extractor.c
@@ -636,6 +636,11 @@ EXTRACTOR_extract (struct EXTRACTOR_PluginList *plugins,
636 { 636 {
637 /* need to create shared memory segment */ 637 /* need to create shared memory segment */
638 shm = EXTRACTOR_IPC_shared_memory_create_ (DEFAULT_SHM_SIZE); 638 shm = EXTRACTOR_IPC_shared_memory_create_ (DEFAULT_SHM_SIZE);
639 if (NULL == shm)
640 {
641 LOG ("Failed to setup IPC\n");
642 return;
643 }
639 } 644 }
640 for (pos = plugins; NULL != pos; pos = pos->next) 645 for (pos = plugins; NULL != pos; pos = pos->next)
641 if ( (NULL == pos->channel) && 646 if ( (NULL == pos->channel) &&