Fixed proc compile warning.
Signed-off-by: Martin Bremmer <martin.bremmer@adlinktech.com>
This commit is contained in:
		
							parent
							
								
									0779399391
								
							
						
					
					
						commit
						955f933ae2
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -22,6 +22,7 @@
 | 
				
			||||||
#include "dds/ddsrt/process.h"
 | 
					#include "dds/ddsrt/process.h"
 | 
				
			||||||
#include "dds/ddsrt/string.h"
 | 
					#include "dds/ddsrt/string.h"
 | 
				
			||||||
#include "dds/ddsrt/heap.h"
 | 
					#include "dds/ddsrt/heap.h"
 | 
				
			||||||
 | 
					#include "dds/ddsrt/log.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ddsrt_pid_t
 | 
					ddsrt_pid_t
 | 
				
			||||||
| 
						 | 
					@ -196,7 +197,9 @@ ddsrt_proc_create(
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* If executing this, something has gone wrong */
 | 
					    /* If executing this, something has gone wrong */
 | 
				
			||||||
    exec_err = errno;
 | 
					    exec_err = errno;
 | 
				
			||||||
    (void)write(exec_fds[1], &exec_err, sizeof(int));
 | 
					    if (write(exec_fds[1], &exec_err, sizeof(int)) < (ssize_t)sizeof(int)) {
 | 
				
			||||||
 | 
					      DDS_ERROR("Could not write proc error pipe.\n");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    close(exec_fds[1]);
 | 
					    close(exec_fds[1]);
 | 
				
			||||||
    close(exec_fds[0]);
 | 
					    close(exec_fds[0]);
 | 
				
			||||||
    ddsrt_free(exec_argv);
 | 
					    ddsrt_free(exec_argv);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue