Changeset 200 for trunk/src/sh_socket.c
- Timestamp:
- Nov 27, 2008, 10:26:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_socket.c
r177 r200 53 53 SL_RET0(_("sh_socket_server_cmd")); 54 54 } 55 if ((srvcmd[0] == 'S') || (srvcmd[1] == 'T') ||56 (srvcmd[2] == 'O') ||(srvcmd[3] == 'P'))55 if ((srvcmd[0] == 'S') && (srvcmd[1] == 'T') && 56 (srvcmd[2] == 'O') && (srvcmd[3] == 'P')) 57 57 { 58 58 TPT((0, FIL__, __LINE__, _("msg=<stop command from server>\n"))); … … 60 60 raise(SIGQUIT); 61 61 #else 62 TPT((0, FIL__, __LINE__, _("msg=<sigquit not defined>\n"))); 62 sig_terminate = 1; 63 ++sig_raised; 63 64 #endif 64 65 } 65 else if ((srvcmd[0] == 'R') || (srvcmd[1] == 'E') ||66 (srvcmd[2] == 'L') || (srvcmd[3] == 'O') ||67 (srvcmd[4] == 'A') ||(srvcmd[5] == 'D'))66 else if ((srvcmd[0] == 'R') && (srvcmd[1] == 'E') && 67 (srvcmd[2] == 'L') && (srvcmd[3] == 'O') && 68 (srvcmd[4] == 'A') && (srvcmd[5] == 'D')) 68 69 { 69 70 TPT((0, FIL__, __LINE__, _("msg=<reload command from server>\n"))); … … 71 72 raise(SIGHUP); 72 73 #else 73 TPT((0, FIL__, __LINE__, _("msg=<sighup not defined>\n"))); 74 #endif 74 sig_config_read_again = 1; 75 ++sig_raised; 76 #endif 77 } 78 else if ((srvcmd[0] == 'S') && (srvcmd[1] == 'C') && 79 (srvcmd[2] == 'A') && (srvcmd[3] == 'N')) 80 { 81 TPT((0, FIL__, __LINE__, _("msg=<scan command from server>\n"))); 82 if (sh.flag.isdaemon == ON) 83 { 84 #ifdef SIGTTOU 85 raise(SIGTTOU); 86 #else 87 sig_force_check = 1; 88 ++sig_raised; 89 #endif 90 } 91 else 92 { 93 sig_force_check = 1; 94 ++sig_raised; 95 } 75 96 } 76 97 else
Note:
See TracChangeset
for help on using the changeset viewer.