mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-30 23:23:07 +00:00 
			
		
		
		
	Better exit (error?) message
The prior calls to exit(-1) were wrong anyway and they may at this point be hindering figuring out what's going on in suite 9.
This commit is contained in:
		| @@ -1601,10 +1601,10 @@ void add_kqueue_events(const struct kevent *events, int length) { | |||||||
|     int status; |     int status; | ||||||
|     status = kevent(janet_vm.kq, events, length, NULL, 0, NULL); |     status = kevent(janet_vm.kq, events, length, NULL, 0, NULL); | ||||||
|     if(status == -1 && errno != EINTR) |     if(status == -1 && errno != EINTR) | ||||||
|         exit(-1); /* do a better exit */ |         janet_panicv(janet_ev_lasterr()); | ||||||
|     for(int i = 0; i < length; i++) { |     for(int i = 0; i < length; i++) { | ||||||
|         if((events[i].flags & EV_ERROR) && events[i].data != EINTR) { |         if((events[i].flags & EV_ERROR) && events[i].data != EINTR) { | ||||||
|             exit(-1); /* do a better exit */ |             janet_panicv(janet_ev_lasterr()); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 llmII
					llmII