DragonFly submit List (threaded) for 2007-06
DragonFly BSD
DragonFly submit List (threaded) for 2007-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: VKERNEL Pidfile patch


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Sun, 17 Jun 2007 18:19:08 +0200
Mail-followup-to: submit@crater.dragonflybsd.org

On Sun, Jun 17, 2007 at 12:15:10PM -0400, Chris Turner wrote:
>  static int save_ac;
> @@ -123,13 +124,14 @@
>  	char *diskFile[VKDISK_MAX];
>  	char *cdFile[VKDISK_MAX];
>  	char *suffix;
> +	char *pidfile = NULL;
>  	int netifFileNum = 0;
>  	int diskFileNum = 0;
> @@ -200,12 +202,16 @@
>  				}
>  			}
>  			break;
> +		case 'p':
> +			pidfile = optarg;	
> +			break;
>  		case 'U':
>  			kernel_mem_readonly = 0;
>  			break;
>  		}
>  	}
>  
if (pidfile != NULL)
> +	writepid(pidfile);
>  	cpu_disable_intr();
>  	init_sys_memory(memImageFile);
>  	init_kern_memory();

. .. otherwise you get a segmenation fault.

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]