74 Commits (e8b4ac37d8ec149582527c09369720a6526984af)

Author SHA1 Message Date
bert Dvornik fc012c2810 start_command: close cmd->err descriptor when fork/spawn fails 15 years ago
Johannes Sixt f9a2743c35 Windows: start_command: Support non-NULL dir in struct child_process 15 years ago
Johannes Sixt f6b6098316 Enable threaded async procedures whenever pthreads is available 15 years ago
Johannes Sixt 0ea1c89ba6 Dying in an async procedure should only exit the thread, not the process. 15 years ago
Johannes Sixt 200a76b74d Reimplement async procedures using pthreads 15 years ago
Michael Wookey 90ff12a860 run-command.c: fix build warnings on Ubuntu 15 years ago
Erik Faye-Lund ae6a5609c0 run-command: support custom fd-set in async 15 years ago
Shawn O. Pearce 4f41b61148 run-command: Allow stderr to be a caller supplied pipe 15 years ago
Johannes Sixt 75301f9015 Windows: avoid the "dup dance" when spawning a child process 15 years ago
Johannes Sixt 2b541bf8be start_command: detect execvp failures early 15 years ago
Johannes Sixt ab0b41daf6 run-command: move wait_or_whine earlier 15 years ago
Johannes Sixt a5487ddf0f start_command: report child process setup errors to the parent's stderr 15 years ago
Jeff King f445644fd2 run-command: optimize out useless shell calls 15 years ago
Jeff King 8dba1e634a run-command: add "use shell" option 15 years ago
Frank Li 71064e3f86 Test for WIN32 instead of __MINGW32_ 16 years ago
Frank Li d7fa500fb5 Fix __stdcall placement and function prototype 16 years ago
Frank Li 0d30ad71fa Avoid declaration after statement 16 years ago
Johannes Sixt 2affea4125 start_command: do not clobber cmd->env on Windows code path 16 years ago
David Soria Parra 5a7a3671b7 run-command.c: squelch a "use before assignment" warning 16 years ago
Johannes Sixt c024beb56d run_command: report failure to execute the program, but optionally don't 16 years ago
Johannes Sixt b99d5f40d6 run_command: encode deadly signal number in the return value 16 years ago
Johannes Sixt 0ac77ec315 run_command: report system call errors instead of returning error codes 16 years ago
Johannes Sixt 5709e0363a run_command: return exit code as positive value 16 years ago
Thomas Rast d824cbba02 Convert existing die(..., strerror(errno)) to die_errno() 16 years ago
Felipe Contreras 4b25d091ba Fix a bunch of pointer declarations (codestyle) 16 years ago
Jeff King 45c0961c87 run_command(): handle missing command errors more gracefully 16 years ago
Stephan Beyer 14e6298f12 run_hook(): allow more than 9 hook arguments 16 years ago
Stephan Beyer cf94ca8ea9 run_hook(): check the executability of the hook before filling argv 16 years ago
Stephan Beyer ae98a0089f Move run_hook() from builtin-commit.c into run-command.c (libgit) 16 years ago
Nanako Shiraishi 7996ff335e run-command.c: remove run_command_v_opt_cd() 16 years ago
Anders Melchiorsen 7d0b18a4da Add output flushing before fork() 17 years ago
Anders Melchiorsen 2c3766f06a Flush output in start_async 17 years ago
Steffen Prohaska 108ac313f7 run-command (Windows): Run dashless "git <cmd>" 17 years ago
Jeff King ccf08bc3d0 run-command: add pre-exec callback 17 years ago
Johannes Schindelin 8852f5d704 run_command(): respect GIT_TRACE 17 years ago
Johannes Sixt 7e5d776854 Windows: Implement a custom spawnve(). 17 years ago
Johannes Sixt 618ebe9ff9 Windows: Implement asynchronous functions as threads. 17 years ago
Johannes Sixt ba26f296f9 Windows: Implement start_command(). 17 years ago
Christian Couder ce2cf27adc run-command: Redirect stderr to a pipe before redirecting stdout to stderr 17 years ago
Johannes Sixt c20181e3a3 start_command(), if .in/.out > 0, closes file descriptors, not the callers 17 years ago
Johannes Sixt e72ae28895 start_command(), .in/.out/.err = -1: Callers must close the file descriptor 17 years ago
Shawn O. Pearce b73a439759 run-command: Support sending stderr to /dev/null 17 years ago
Johannes Sixt 2d22c20830 Add infrastructure to run a function asynchronously. 17 years ago
Johannes Sixt f3b33f1d22 Have start_command() create a pipe to read the stderr of the child. 17 years ago
Alex Riesen 3427b375b5 Allow environment variables to be unset in the processes started by run_command 18 years ago
Alex Riesen ee4931486b Add ability to specify environment extension to run_command 18 years ago
Alex Riesen 1568fea01e Add run_command_v_opt_cd: chdir into a directory before exec 18 years ago
Shawn O. Pearce e4507ae84e Teach run-command to redirect stdout to /dev/null 18 years ago
Shawn O. Pearce f4bba25bdc Teach run-command about stdout redirection 18 years ago
Shawn O. Pearce 9dc09c7664 Simplify closing two fds at once in run-command.c 18 years ago