sys_pipe.c (9a1bde1808c46ddbf781de3cfe4ab990079aa151) | sys_pipe.c (d8b0556c6dcaf4c506039f86af2b52b29524f89e) |
---|---|
1/*- 2 * Copyright (c) 1996 John S. Dyson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 314 unchanged lines hidden (view full) --- 323 * for the pair, and not on the endpoints. 324 */ 325 mac_pipe_init(pp); 326 mac_pipe_create(td->td_ucred, pp); 327#endif 328 rpipe = &pp->pp_rpipe; 329 wpipe = &pp->pp_wpipe; 330 | 1/*- 2 * Copyright (c) 1996 John S. Dyson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 314 unchanged lines hidden (view full) --- 323 * for the pair, and not on the endpoints. 324 */ 325 mac_pipe_init(pp); 326 mac_pipe_create(td->td_ucred, pp); 327#endif 328 rpipe = &pp->pp_rpipe; 329 wpipe = &pp->pp_wpipe; 330 |
331 knlist_init(&rpipe->pipe_sel.si_note, PIPE_MTX(rpipe), NULL, NULL, 332 NULL); 333 knlist_init(&wpipe->pipe_sel.si_note, PIPE_MTX(wpipe), NULL, NULL, 334 NULL); | 331 knlist_init_mtx(&rpipe->pipe_sel.si_note, PIPE_MTX(rpipe)); 332 knlist_init_mtx(&wpipe->pipe_sel.si_note, PIPE_MTX(wpipe)); |
335 336 /* Only the forward direction pipe is backed by default */ 337 if ((error = pipe_create(rpipe, 1)) != 0 || 338 (error = pipe_create(wpipe, 0)) != 0) { 339 pipeclose(rpipe); 340 pipeclose(wpipe); 341 return (error); 342 } --- 1301 unchanged lines hidden --- | 333 334 /* Only the forward direction pipe is backed by default */ 335 if ((error = pipe_create(rpipe, 1)) != 0 || 336 (error = pipe_create(wpipe, 0)) != 0) { 337 pipeclose(rpipe); 338 pipeclose(wpipe); 339 return (error); 340 } --- 1301 unchanged lines hidden --- |