SMS Server Tools 3
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. The forum is currently read-only, but will open soon. Tue Jul 01, 2025 10:48
SMSTools3 Community » Search Bottom

Page:  1

Keywords:
Mode: All keywords (AND)
crux: I got the same error. When process_id == -1 (main process), then DEVICE.name become devices[-1].name at src/locking.c:45. Negative index cause memory access violation and result in SIGSEGV. I propose more reliable patch: --- a/smstools/src/locking.c +++ b/smstools/src/locking.c @@ -42,7 +42,7 @@ int lockfile( char* filename) lockfile=open(lockfilename,O_CREAT|O_EXCL|O_WRONLY,0644); if (lockfile>=0) { - snprintf(pid, sizeof(pid), "%i %s\n", (int)getpid(), DEVICE.name); + snprintf(pid, sizeof(pid), "%i %s\n", (int)getpid(), (process_id != -1) ? DEVICE.name : "MAIN" ); write(lockfile, pid, strlen(pid)); close(lockfile); sync();

Page:  1

SMSTools3 Community » Search Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.