mailing list of musl libc
 help / color / mirror / code / Atom feed
79e3d1d580fdab83a9a784a21d394149d81a2f2d blob 398 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
#include "stdio_impl.h"
#include <sys/wait.h>
#include "wait4_waitid.h"
#include <errno.h>
#include <unistd.h>

int pclose(FILE *f)
{
	int status, r;
	pid_t pid = f->pipe_pid;
	fclose(f);
#ifdef SYS_wait4
	while ((r=__syscall(SYS_wait4, pid, &status, 0, 0)) == -EINTR);
#else
	while ((r=__wait4_waitid(pid, &status, 0, 0, 0)) == -EINTR);
#endif
	if (r<0) return __syscall_ret(r);
	return status;
}
debug log:

solving 79e3d1d5 ...
found 79e3d1d5 in https://inbox.vuxu.org/musl/20200903112309.102601-8-sorear@fastmail.com/
found 080a4262 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 080a426245b67be80d5066a539d2b6fabcf20b4f	src/stdio/pclose.c

applying [1/1] https://inbox.vuxu.org/musl/20200903112309.102601-8-sorear@fastmail.com/
diff --git a/src/stdio/pclose.c b/src/stdio/pclose.c
index 080a4262..79e3d1d5 100644

Checking patch src/stdio/pclose.c...
Applied patch src/stdio/pclose.c cleanly.

index at:
100644 79e3d1d580fdab83a9a784a21d394149d81a2f2d	src/stdio/pclose.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).