OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "sandbox/linux/services/credentials.h" | 5 #include "sandbox/linux/services/credentials.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <limits.h> |
9 #include <pthread.h> | 10 #include <pthread.h> |
10 #include <signal.h> | 11 #include <signal.h> |
11 #include <stdio.h> | 12 #include <stdio.h> |
12 #include <sys/capability.h> | 13 #include <sys/capability.h> |
13 #include <sys/stat.h> | 14 #include <sys/stat.h> |
14 #include <sys/types.h> | 15 #include <sys/types.h> |
15 #include <unistd.h> | 16 #include <unistd.h> |
16 | 17 |
17 #include <vector> | 18 #include <vector> |
18 | 19 |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 action.sa_handler = &SignalHandler; | 261 action.sa_handler = &SignalHandler; |
261 PCHECK(sigaction(SIGUSR1, &action, nullptr) == 0); | 262 PCHECK(sigaction(SIGUSR1, &action, nullptr) == 0); |
262 | 263 |
263 PCHECK(raise(SIGUSR1) == 0); | 264 PCHECK(raise(SIGUSR1) == 0); |
264 CHECK_EQ(1, signal_handler_called); | 265 CHECK_EQ(1, signal_handler_called); |
265 } | 266 } |
266 | 267 |
267 } // namespace. | 268 } // namespace. |
268 | 269 |
269 } // namespace sandbox. | 270 } // namespace sandbox. |
OLD | NEW |