diff options
Diffstat (limited to 'comms/seyon/files/patch-SePort.c')
-rw-r--r-- | comms/seyon/files/patch-SePort.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/comms/seyon/files/patch-SePort.c b/comms/seyon/files/patch-SePort.c deleted file mode 100644 index 096852803248..000000000000 --- a/comms/seyon/files/patch-SePort.c +++ /dev/null @@ -1,29 +0,0 @@ ---- SePort.c.orig 2015-05-08 01:08:39 UTC -+++ SePort.c -@@ -1022,6 +1022,7 @@ lock_tty() - pid_t pid, - lckpid; - char *modemname; -+ int killret; - #if LF_USE_ASCII_PID - char pidstr[20], - lckpidstr[20]; -@@ -1088,11 +1089,13 @@ relink: - #endif - - lockPid = (pid_t) lckpid; -- if (kill(lckpid, 0) == 0 || errno != ESRCH) { -- SeErrorF("Device %s is locked by process %d", modem_port, lckpid, ""); -- unlink(ltmp); -- return -1; -- } -+ killret = kill(lockPid, 0); -+ if(killret == 0 || (killret == -1 && errno != ESRCH)) { -+ SeErrorF("Device %s is locked by process %d.", -+ modem_port, lckpid, ""); -+ unlink(ltmp); -+ return -1; -+ } - } - } - |