mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	SystemMonitor: Use pledge()
This commit is contained in:
		
							parent
							
								
									ec1ae37f69
								
							
						
					
					
						commit
						f848faeec8
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		|  | @ -49,8 +49,18 @@ static NonnullRefPtr<GWidget> build_graphs_tab(); | |||
| 
 | ||||
| int main(int argc, char** argv) | ||||
| { | ||||
|     if (pledge("stdio shared_buffer rpath unix cpath fattr", nullptr) < 0) { | ||||
|         perror("pledge"); | ||||
|         return 1; | ||||
|     } | ||||
| 
 | ||||
|     GApplication app(argc, argv); | ||||
| 
 | ||||
|     if (pledge("stdio shared_buffer rpath unix", nullptr) < 0) { | ||||
|         perror("pledge"); | ||||
|         return 1; | ||||
|     } | ||||
| 
 | ||||
|     auto keeper = GWidget::construct(); | ||||
|     keeper->set_layout(make<GBoxLayout>(Orientation::Vertical)); | ||||
|     keeper->set_fill_with_background_color(true); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling