ObjFW  Check-in [3ff339cf42]

Overview
Comment:OFProcess: Send SIGTERM on close

SIGKILL was a little bit too much.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3ff339cf4218dc034dde23c609b5afa419519772924aa183933eaa984446b05b
User & Date: js on 2015-08-26 08:24:17
Other Links: manifest | tags
Context
2015-08-26
08:29
Move config.{guess,sub}, install-sh to build-aux check-in: 30417741fa user: js tags: trunk
08:24
OFProcess: Send SIGTERM on close check-in: 3ff339cf42 user: js tags: trunk
2015-08-23
20:49
Documentation improvements check-in: 366adf9bee user: js tags: trunk
Changes

Modified src/OFProcess.m from [30416b7510] to [dc696d6c83].

564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
#ifndef _WIN32
	if (_readPipe[0] != -1)
		close(_readPipe[0]);
	if (_writePipe[1] != -1)
		close(_writePipe[1]);

	if (_pid != -1) {
		kill(_pid, SIGKILL);
		waitpid(_pid, &_status, WNOHANG);
	}

	_pid = -1;
	_readPipe[0] = -1;
	_writePipe[1] = -1;
#else







|







564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
#ifndef _WIN32
	if (_readPipe[0] != -1)
		close(_readPipe[0]);
	if (_writePipe[1] != -1)
		close(_writePipe[1]);

	if (_pid != -1) {
		kill(_pid, SIGTERM);
		waitpid(_pid, &_status, WNOHANG);
	}

	_pid = -1;
	_readPipe[0] = -1;
	_writePipe[1] = -1;
#else