Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kern_head.c
r51 r92 726 726 if (utbuf.release[0] == '3') 727 727 which = 38; 728 else if (utbuf.release[0] == '4') 729 which = 40; 728 730 #else 729 731 if (utbuf.release[0] == '4') … … 791 793 printf("\n/* Kernel %s, machine %s -- use table %s */\n\n", 792 794 utbuf.release, utbuf.machine, "callz_fbsd5"); 793 else if (which == 38 )795 else if (which == 38 || which == 40) 794 796 printf("\n/* Kernel %s, machine %s -- use table %s */\n\n", 795 797 utbuf.release, utbuf.machine, "callz_obsd"); … … 817 819 } 818 820 } 819 else if (which == 38 ) {821 else if (which == 38 || which == 40) { 820 822 while ((callz_obsd[i] != NULL) && (i < SYS_MAXSYSCALL)) 821 823 { -
trunk/src/samhain.c
r86 r92 914 914 default: 915 915 times = 0; 916 while (times < 120) {916 while (times < 300) { 917 917 respid = waitpid(pid, &status, WNOHANG|WUNTRACED); 918 918 if ((pid_t)-1 == respid) … … 1122 1122 SL_ENTER(_("main")); 1123 1123 1124 /* --- Close all but first three file descriptors. --- 1125 */ 1126 sh_unix_closeall(3, -1); /* at program start */ 1127 1128 1124 1129 if (argc >= 2 && 0 != getuid() && 1125 1130 (0 == strcmp(argv[1], _("start")) || … … 1311 1316 sh.flag.opts = S_FALSE; 1312 1317 1313 1314 /* close all other files1315 */1316 sh_unix_closeall(3, -1); /* after processing CL options; only stderr here */1317 1318 1318 1319 1319 /* --- Get user info. --- -
trunk/src/sh_unix.c
r89 r92 1849 1849 if (goDaemon == 1) 1850 1850 { 1851 /* close allfile descriptors1851 /* Close first tree file descriptors 1852 1852 */ 1853 sh_unix_closeall (0, -1); /* if running as daemon */ 1853 close (0); /* if running as daemon */ 1854 close (1); /* if running as daemon */ 1855 close (2); /* if running as daemon */ 1854 1856 1855 1857 /* Enable full error logging … … 1913 1915 else 1914 1916 { 1915 sh_unix_closeall(3, -1); /* if not daemon */1916 1917 sh_error_enable_unsafe (S_TRUE); 1917 1918 #if defined(HAVE_LIBPRELUDE)
Note:
See TracChangeset
for help on using the changeset viewer.