From: Gerrit Pape <pape@smarden.org>
Subject: Re: Trying to alter runit a little.
Date: Mon, 21 Nov 2005 08:56:33 +0000 [thread overview]
Message-ID: <20051121085059.2355.qmail@5ce7ed8b897c6a.315fe32.mid.smarden.org> (raw)
In-Reply-To: <20051118110704.67248.qmail@web33306.mail.mud.yahoo.com>
On Fri, Nov 18, 2005 at 03:07:04AM -0800, L. Jason Godsey wrote:
> build# diff -u runit.c.original runit.c
> --- runit.c.original Fri Nov 18 10:56:29 2005
> +++ runit.c Fri Nov 18 10:57:41 2005
> @@ -54,7 +54,7 @@
> int ttyfd;
> struct stat s;
>
> - if (getpid() != 1) strerr_die2x(111, FATAL, "must be run as process
> no 1.");
> + //if (getpid() != 1) strerr_die2x(111, FATAL, "must be run as
> process no 1.");
> setsid();
>
> sig_block(sig_alarm);
>
> build# pwd
> /usr/ports/sysutils/runit/work/admin/runit-1.3.1/src
>
> build# make check
> ./check-local chpst runit runit-init runsv runsvchdir runsvctrl
> runsvdir runsvstat sv svlogd svwaitdown svwaitup utmpset
> Checking chpst...
> Checking runit...
> Killed
>
> main# echo $?
> 137
Ah yes. The runit program test actually is kind of a pseudo test. It
just tests that the runit program can't be run unless it has pid 1. So
if you make this change you need to skip or adapt the runit program
test, e.g.:
--- src/Makefile 23 Jul 2005 13:12:39 -0000 1.29
+++ src/Makefile 21 Nov 2005 08:49:52 -0000
@@ -3,8 +3,10 @@
default: sysdeps $(IT)
-check: $(IT)
- ./check-local $(IT)
+check: chpst runit-init runsv runsvchdir runsvctrl runsvdir runsvstat sv \
+ svlogd svwaitdown svwaitup utmpset
+ ./check-local chpst runit-init runsv runsvchdir runsvctrl runsvdir \
+ runsvstat sv svlogd svwaitdown svwaitup utmpset
runit: load runit.o unix.a byte.a
./load runit unix.a byte.a -static
Regards, Gerrit.
prev parent reply other threads:[~2005-11-21 8:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-12 15:02 L. Jason Godsey
2005-11-17 8:59 ` Gerrit Pape
2005-11-17 22:46 ` Paul Jarc
2005-11-21 8:59 ` Gerrit Pape
2005-11-22 6:37 ` Paul Jarc
2005-11-18 11:07 ` L. Jason Godsey
2005-11-21 8:56 ` Gerrit Pape [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051121085059.2355.qmail@5ce7ed8b897c6a.315fe32.mid.smarden.org \
--to=pape@smarden.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).