Changeset 3237 in kBuild
- Timestamp:
- Dec 25, 2018 4:11:26 AM (6 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin.h
r3224 r3237 35 35 #endif 36 36 #include <fcntl.h> 37 #ifdef HAVE_STDINT_H 38 # include <stdint.h> 39 #endif 37 40 38 41 /* For the GNU/hurd weirdo. */ -
trunk/src/kmk/kmkbuiltin/err.c
r3192 r3237 29 29 #ifdef HAVE_CONFIG_H 30 30 # include "config.h" 31 # ifdef HAVE_STDLIB_H 32 # include <stdlib.h> 33 # endif 34 # ifdef HAVE_STDINT_H 35 # include <stdint.h> 36 # endif 31 37 #else 32 38 # include <stdlib.h> -
trunk/src/kmk/kmkbuiltin/redirect.c
r3210 r3237 33 33 #include <assert.h> 34 34 #include <stdio.h> 35 #include <stdarg.h> 35 36 #include <stdlib.h> 36 37 #include <string.h> … … 422 423 } 423 424 425 #if !defined(USE_POSIX_SPAWN) && !defined(KBUILD_OS_WINDOWS) 424 426 425 427 /** … … 454 456 } 455 457 456 #if !defined(USE_POSIX_SPAWN) && !defined(KBUILD_OS_WINDOWS)457 458 458 459 /** … … 1291 1292 for (;;) 1292 1293 { 1293 pid_t pid = waitpid(pidChild, &rcExit, 0 /*block*/); 1294 int rcExitRaw = 1; 1295 pid_t pid = waitpid(pidChild, &rcExitRaw, 0 /*block*/); 1294 1296 if (pid == pidChild) 1295 1297 { 1298 rcExit = WIFEXITED(rcExitRaw) ? WEXITSTATUS(rcExitRaw) : 63; 1296 1299 if (cVerbosity > 0) 1297 warnx(pCtx, "debug: %d exit code: %d ", pidChild, rcExit);1300 warnx(pCtx, "debug: %d exit code: %d (%d)", pidChild, rcExit, rcExitRaw); 1298 1301 break; 1299 1302 }
Note:
See TracChangeset
for help on using the changeset viewer.