Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 417181
Collapse All | Expand All

(-)pidof.c.orig (-2 / +2 lines)
Lines 56-65 get_pid_of_process(const char *process_n Link Here
56
	char *pname = NULL;
56
	char *pname = NULL;
57
57
58
	if (process_name == NULL)
58
	if (process_name == NULL)
59
		return;
59
		return 0;
60
60
61
	if ((pname = strdup(basename(process_name))) == NULL)
61
	if ((pname = strdup(basename(process_name))) == NULL)
62
		return;
62
		return 0;
63
	
63
	
64
	if ((kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, NULL)) == NULL) {
64
	if ((kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, NULL)) == NULL) {
65
		free(pname);
65
		free(pname);

Return to bug 417181