Skip to content

Commit d1da800

Browse files
Remove syslog from extractor as it causes crashes
1 parent a825d30 commit d1da800

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

extractor/main.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include <stdio.h>
55
#include <stdlib.h>
66
#include <string.h>
7-
#include <sys/syslog.h>
87
#include <sys/types.h>
98
#include <sys/stat.h>
109
#include <sys/wait.h>
@@ -17,14 +16,10 @@
1716
void Log(const char* format, ...)
1817
{
1918
va_list args;
20-
va_list args2;
2119
va_start (args, format);
22-
va_copy(args2, args);
2320
vprintf (format, args);
2421
printf("\n");
25-
vsyslog(LOG_INFO, format, args2);
2622
va_end (args);
27-
va_end (args2);
2823
}
2924

3025
cJSON* generateChangeRequest(cJSON* json, char* filePath, char* uuid, char* name_string, char* author_string, char* icon_string, bool new) {
@@ -409,7 +404,6 @@ int extractor(const struct scanner_event* event) {
409404

410405
__attribute__((__visibility__("default"))) int load_extractor(ScannerEventHandler** handler, int *unk1) {
411406
Log("Extractor initialised.\n");
412-
openlog("org.kindlemodding.shell_integration.extractor", LOG_PID, LOG_DAEMON);
413407
*handler = extractor;
414408
*unk1 = 0;
415409
return 0;

0 commit comments

Comments
 (0)