Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/agent/src/os/linux/libproc_impl.c Wed Feb 13 11:23:46 2013 +0100 +++ b/agent/src/os/linux/libproc_impl.c Wed Feb 13 09:46:19 2013 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -92,6 +92,14 @@ } } +void print_error(const char* format,...) { + va_list alist; + va_start(alist, format); + fputs("ERROR: ", stderr); + vfprintf(stderr, format, alist); + va_end(alist); +} + bool is_debug() { return _libsaproc_debug; }