Mercurial > hg > truffle
comparison agent/src/os/linux/libproc_impl.c @ 8058:2394a89e89f4
8008088: SA can hang the VM
Reviewed-by: mgronlun, sla, dholmes
author | rbackman |
---|---|
date | Wed, 13 Feb 2013 09:46:19 +0100 |
parents | 54d3535a6dd3 |
children | d7cb88bd7046 |
comparison
equal
deleted
inserted
replaced
8057:7adae9244bc8 | 8058:2394a89e89f4 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
90 vfprintf(stderr, format, alist); | 90 vfprintf(stderr, format, alist); |
91 va_end(alist); | 91 va_end(alist); |
92 } | 92 } |
93 } | 93 } |
94 | 94 |
95 void print_error(const char* format,...) { | |
96 va_list alist; | |
97 va_start(alist, format); | |
98 fputs("ERROR: ", stderr); | |
99 vfprintf(stderr, format, alist); | |
100 va_end(alist); | |
101 } | |
102 | |
95 bool is_debug() { | 103 bool is_debug() { |
96 return _libsaproc_debug; | 104 return _libsaproc_debug; |
97 } | 105 } |
98 | 106 |
99 // initialize libproc | 107 // initialize libproc |