diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-24 22:25:57 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-24 22:25:57 +0000 |
commit | cb080247ac32a846f72554a371ca69e3dd9080da (patch) | |
tree | 22e1c8621f8d1135ade4a3fb501a02089487659f /src/main/extractor.c | |
parent | b7846948995576e768ce89d2cd0dd04d1e64de13 (diff) | |
download | libextractor-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.c | 5 |
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) && |