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:
		| @@ -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).  | ||||
|  * All rights reserved.  | ||||
|  * | ||||
| @@ -290,6 +290,12 @@ main(int argc, char **argv) | ||||
|      | ||||
|     if(ret) | ||||
| 	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) { | ||||
| 	ret = sl_command (actual_cmds, argc, argv); | ||||
| 	if(ret == -1) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Johan Danielsson
					Johan Danielsson