mailing list of musl libc
 help / color / mirror / code / Atom feed
007b369e7f6a79f1a22fae6160d426475fac8c0c blob 339 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 
#include <pty.h>
#include <utmp.h>
#include <unistd.h>

int forkpty(int *m, char *name, const struct termios *tio, const struct winsize *ws)
{
	int s;
	pid_t pid;

	if (openpty(m, &s, name, tio, ws) < 0) return -1;

	pid = fork();
	if (!pid) {
		close(*m);
		login_tty(s);
		return 0;
	}
	close(s);
	if (pid < 0) close(*m);
	return pid;
}
debug log:

solving 007b369 ...
found 007b369 in https://inbox.vuxu.org/musl/20141101222729.GB5949@euler/ ||
	https://inbox.vuxu.org/musl/20140826165627.GA1208@euler/
found 4a1ea9b in https://inbox.vuxu.org/musl/20141101222729.GB5949@euler/
found 07f8d01 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 07f8d01eed66741e31ec3c83a07ab5d4306d2fd0	src/misc/forkpty.c

applying [1/3] https://inbox.vuxu.org/musl/20141101222729.GB5949@euler/
diff --git a/src/misc/forkpty.c b/src/misc/forkpty.c
index 07f8d01..4a1ea9b 100644


applying [2/3] https://inbox.vuxu.org/musl/20141101222729.GB5949@euler/
diff --git a/src/misc/forkpty.c b/src/misc/forkpty.c
index 4a1ea9b..007b369 100644

Checking patch src/misc/forkpty.c...
Applied patch src/misc/forkpty.c cleanly.
Checking patch src/misc/forkpty.c...
Applied patch src/misc/forkpty.c cleanly.

skipping https://inbox.vuxu.org/musl/20140826165627.GA1208@euler/ for 007b369
index at:
100644 007b369e7f6a79f1a22fae6160d426475fac8c0c	src/misc/forkpty.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).