ignore SIGINT for now

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9511 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2001-01-26 22:20:52 +00:00
parent 820c4a54a3
commit 7c0cfca247

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan * Copyright (c) 1997 - 2001 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -290,6 +290,12 @@ main(int argc, char **argv)
if(ret) if(ret)
krb5_err(context, 1, ret, "kadm5_init_with_password"); krb5_err(context, 1, ret, "kadm5_init_with_password");
signal(SIGINT, SIG_IGN); /* ignore signals for now, the sl command
parser will handle SIGINT its own way;
we should really take care of this in
each function, f.i `get' might be
interruptable, but not `create' */
if (argc != 0) { if (argc != 0) {
ret = sl_command (actual_cmds, argc, argv); ret = sl_command (actual_cmds, argc, argv);
if(ret == -1) if(ret == -1)