Displaying 20 results from an estimated 26599 matches for "exit".
2009 Nov 20
1
fix new failures from latest-from-gnulib syntax-check
There's a new syntax check rule from gnulib.
It requires that you write e.g., exit (EXIT_SUCCESS), not exit (0).
And the same for 1/EXIT_FAILURE and any other constants.
There were a lot of violations, including a few false positives,
so I started with the exemptions (see the .x-sc file below).
Then I converted the vast majority automatically, with this:
maint: use EXIT_SUC...
2013 Nov 03
1
on.exit() & sys.on.exit(): Calling them via eval() does not work as hoped
Why does the following eval() call on sys.on.exit() not return what I
expect/evaluate in the proper environment?
foo <- function() {
cat("foo()...\n");
on.exit( message("exiting") )
cat("sys.on.exit():\n")
res <- sys.on.exit()
print(res)
cat("eval(sys.on.exit()):\n")
expr <- quote(s...
2001 Sep 10
1
on.exit processing
I have encountered a 'strange' behavior in the 'on.exit' processing. I had
a function where I setup an 'on.exit' condition and then later on added to
it with an 'on.exit({...}, add=T)'. What appeared to happen is that on
subsequent calls to the function, even if only the first 'on.exit' was
called, it was still executing th...
2003 Apr 09
5
httpd exited on signal 11
Hello Folks,
I have used FreeBSD-4.8-RC and apache 1.3.2x. In some days,my dmesg
has shown as the lines;
pid 9229 (httpd), uid 80: exited on signal 11
pid 10106 (httpd), uid 80: exited on signal 11
pid 9842 (httpd), uid 80: exited on signal 11
pid 35708 (httpd), uid 80: exited on signal 11
pid 9371 (httpd), uid 80: exited on signal 11
pid 10337 (httpd), uid 80: exited on signal 11
pid 9757 (httpd), uid 80: exited...
2005 Oct 05
2
Confused
...09:21:43 mail1 dovecot: imap(*****): file mbox-save.c: line
280 (mbox_save_init_file): assertion failed: (mbox->mbox_lock_type !=
F_RDLCK)
Some of them also have something to do with storage space.
Any ideas at all? Thanks :)
Regards,
Matt
---dmesg snip----
pid 20905 (imap), uid 34411: exited on signal 6
pid 42237 (imap), uid 33345: exited on signal 6
pid 42757 (imap), uid 33345: exited on signal 6
pid 43036 (imap), uid 33345: exited on signal 6
pid 41987 (imap), uid 32768: exited on signal 6
pid 99572 (imap), uid 35371: exited on signal 6
pid 99759 (imap), uid 35371: exited on signal...
2007 Oct 07
2
Specing exit codes
I am writing a small ruby script that will be accepting input from
postfix''s pipe command (ie, not running via the shell, directly
executing).
One of the things I need to do it spec the exit codes to make sure I
am returing the correct exit codes for each condition as Postfix will
then return SMTP errors as appropriate.
I have two files that concern this bit of the program, init.rb and init_spec.rb.
init.rb right now looks like this:
------------------------
class Init
exit 1
end
-...
2007 Jul 25
2
proc:::exit not firing
I have a funny issue whereby when a application exits the proc:::exit
probe doesn''t seem to be firing.
A customer has written a dtrace script that outputs some info whenever
proc:::exit fires but on occasion (random, no pattern in behaviour)
dtrace exits without outputting the data.
They are running dtrace via ''dtrace -s exit_tr...
2018 Sep 13
0
[PATCH v2 nbdkit 4/5] tests: Use a generic cleanup mechanism instead of explicit trap.
...fdfe5..42e3925 100644
--- a/tests/functions.sh.in
+++ b/tests/functions.sh.in
@@ -32,6 +32,31 @@
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
+# cleanup_fn f [args]
+#
+# A generic trap handling function. This runs the function f + args
+# when the script exits for any reason.
+declare -a _cleanup_hook
+cleanup_fn ()
+{
+ _cleanup_hook[${#_cleanup_hook[@]}]="$@"
+}
+
+_run_cleanup_hooks ()
+{
+ status=$?
+ set +e
+ trap '' INT QUIT TERM EXIT ERR
+ echo $0: run cleanup hooks: exit code $status
+
+ for (( i = 0; i < $...
2020 Oct 20
1
[PATCH nbdkit INCOMPLETE] New filter: exitwhen: exit gracefully when an event occurs.
This incomplete patch adds a new filter allowing more control over
when nbdkit exits. You can now get nbdkit to exit gracefully on
certain events, such as a file being created, a pipe held open by
another process going away, or when another PID exits. There is also
a script option to allow for completely custom events.
It is untested at the moment, I'm posting it to get fee...
2017 Dec 01
3
tryCatch in on.exit()
The following example involves a function whose on.exit()
expression both generates an error and catches the error.
The body of the function also generates an error.
When calling the function wrapped in a tryCatch, should
that tryCatch's error function be given the error from the
body of the function, since the one from the on.exit has
already been...
2007 Jan 23
12
How to exit from console?
Hi, all
Stupid question, but how do you exit asterisk console without stopping
the asterisk?
Tried quit and exit:
*CLI> exit
No such command 'exit' (type 'help' for help)
*CLI> quit
No such command 'quit' (type 'help' for help)
*CLI>
Any other ideas?
I started asterisk with -cvvvvg option. Same pro...
2018 Apr 05
2
[nbdkit PATCH] tests: Skip guestfs tests on CentOS 6
...libs/nbdkit-gzip-plugin.so -r file=disk.
gz
nbdkit: debug: TLS disabled: nbdkit was not compiled with GnuTLS support
nbdkit: /home/dummy/nbdkit/plugins/gzip/.libs/nbdkit-gzip-plugin.so: /home/dummy
/nbdkit/plugins/gzip/.libs/nbdkit-gzip-plugin.so: undefined symbol: gzbuffer
test-gzip FAILED: nbdkit exited before starting to serve files
waitpid: No child processes
FAIL: test-gzip
./test-dump-plugin-example4.sh: unexpected output from nbdkit example4 --dump-pl
ugin
path=/home/dummy/nbdkit/plugins/perl/.libs/nbdkit-perl-plugin.so
...
has__zero_old=1
FAIL: test-dump-plugin-example4.sh
libguestfs: tr...
2015 Jul 09
4
[LLVMdev] readonly and infinite loops
Here's a fun spin on this same topic (I can't file a bug at this
moment since llvm.org is down).
Consider:
define i32 @x(i32* %x, i1* %y) {
entry:
br label %loop
loop:
%v = phi i32 [ 0 , %entry ], [ %v.inc, %exit.inner ], [ %v, %loop ]
%c = load volatile i1, i1* %y
br i1 %c, label %exit.inner, label %loop
exit.inner:
%c1 = load volatile i1, i1* %y
%x.val = load i32, i32* %x
%v.inc = add i32 %v, %x.val
br i1 %c1, label %exit.real, label %loop
exit.real:
ret i32 %v
}
Now if %c is false ever...
2005 Aug 24
1
Test Failure on Mac OS X 10.4.2
...to compile but the tests are failing. When I run
the test as root I get:
run test connect.sh ...
Connection closed by 127.0.0.1
ssh connect with protocol 1 failed
failed simple connect
make[1]: *** [t-exec] Error 1
make: *** [tests] Error 2
However, when I run as a normal user I got:
test remote exit status: proto 1 status 0
/Users/rapier/Desktop/sshtest/openssh/regress/test-exec.sh: line 24:
14772 Bus error ${SSH} -$p -F $OBJ/ssh_proxy -n otherhost
exec sh -c \'"sleep 2; exec > /dev/null 2>&1; sleep 3; exit $s"\'
exit code (with sleep) mismatch for p...
2020 Oct 21
0
[PATCH nbdkit] New filter: exitwhen: exit gracefully when an event occurs.
---
docs/nbdkit-captive.pod | 6 +-
docs/nbdkit-service.pod | 1 +
filters/exitlast/nbdkit-exitlast-filter.pod | 3 +
filters/exitwhen/nbdkit-exitwhen-filter.pod | 156 ++++++
filters/ip/nbdkit-ip-filter.pod | 1 +
filters/limit/nbdkit-limit-filter.pod | 1 +
filters/rate/nbdkit-rate-filter.pod | 1 +
configure.ac...
2002 Nov 25
0
Linux and Samba Code
...d *pwentry;
char name[STRLEN];
char newpw[STRLEN];
int reallyroot = 0;
char *cp;
FILE *mystderr;
/* do we have the appropriate permissions? */
if (geteuid() != 0) {
fprintf(stderr, "This program cannot run unless it is SUID-root, "
"exiting...\n");
exit(1);
}
if (getuid() == 0)
reallyroot = 1;
/* get the appropriate username */
if (argc > 1) {
if (reallyroot) {
/* if root, we can specify a username */
strncpy(name, *++argv, STRLEN);
} else {
fprintf(stderr, "Only t...
2013 May 31
2
3.0.1 update and compiler package
...t will not update several
packages. When it was finished I used the warnings function to have a
look at what did not work. See the list below.
> warnings()
Warning messages:
1: In install.packages(update[instlib == l, "Package"], l, ... :
installation of package ?boot? had non-zero exit status
2: In install.packages(update[instlib == l, "Package"], l, ... :
installation of package ?cluster? had non-zero exit status
3: In install.packages(update[instlib == l, "Package"], l, ... :
installation of package ?foreign? had non-zero exit status
4: In install.packages(u...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
Wherever we had code which did:
if (something_bad) {
perror (...);
exit (EXIT_FAILURE);
}
replace this with use of the error(3) function:
if (something_bad)
error (EXIT_FAILURE, errno, ...);
The error(3) function is supplied by glibc, or by gnulib on platforms
which don't have it, and is much more flexible than perror(3). Since
we already use error(3),...
2011 Mar 31
3
[LLVMdev] inserting exit function into IR
Hi Joshua,
I have a function foo and I want to insert exit(0) at the end of foo.
The problem is M.getFunction returns null, which is understandable. I am not
sure what to do. Below is the code snippet.
void foo(int argc, char* argv[]) {
printf("hello world\n");
exit(0); //***I want to insert this exit
}
My llvm code snippet is
vector<co...
2019 May 22
1
make running on.exit expr uninterruptible
Hi,
Is there currently any way to guarantee that on.exit does not fail to execute the recorded expression because of a user interrupt arriving during function exit? Consider:
f <- function() {
suspendInterrupts({
on.exit(suspendInterrupts(cntr_on.exit <<- cntr_on.exit + 1L))
cntr_f <<- cntr_f + 1L
})
TRUE
}
It is possible t...