Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Use the new socketpair helper
Baptiste Daroussin committed 6 years ago
commit 2fab6602ddad641a6f02df609f4e767f37605a0f
parent 260820b
1 file changed +1 -5
modified libpkg/pkg_repo_create.c
@@ -578,12 +578,8 @@ pkg_create_repo(char *path, const char *output_dir, bool filelist,
		if (--remain_jobs == 0) {
			/* Create new worker */
			int ofl;
-
			int st = SOCK_DGRAM;

-
#ifdef HAVE_DECL_SOCK_SEQPACKET
-
			st = SOCK_SEQPACKET;
-
#endif
-
			if (socketpair(AF_UNIX, st, 0, cur_pipe) == -1) {
+
			if (get_socketpair(cur_pipe) == -1) {
				pkg_emit_errno("pkg_create_repo", "pipe");
				goto cleanup;
			}